//
//  YBGameClientInfoModel.swift
//  Moonlight
//
//  Created by Penlon Kim on 2024/1/6.
//  Copyright © 2024 Moonlight Game Streaming Project. All rights reserved.
//

import UIKit

class YBGameClientInfoModel: BaseModel {
    enum Gender: Int {
        case man = 1
        case female
        case unknow
    }
    
    enum UserType: Int {
        case client = 0
        case designCloud = 3
        case association = 4
        case build = 5
        case gameCloud = 6
    }
    
    /// 年龄
    var age: Int = 0
    /// 用户头像
    var avatar: String = ""
    /// 每日可用时长
    var dailyTime: Int = 0
    /// 设备id
    var deviceId: String = ""
    /// 邮箱
    var email: String = ""
    /// 结束时间
    var endTime: String = ""
    /// 套餐到期时间
    var expireTime: String = ""
    /// 性别，0未知，1男，2女，3保密
    var gender: Int = 0
    /// 性别，0未知，1男，2女，3保密
    var _gender: Gender {
        return Gender(rawValue: gender) ?? .unknow
    }
    /// 用户id
    var id: String = ""
    /// 手机号码
    var mobile: String = ""
    /// 昵称
    var nickName: String = ""
    /// openid
    var openid: String = ""
    /// 真实姓名
    var realName: String = ""
    /// 剩余每日可用时长
    var surplusDaily: String = ""
    /// 剩余每月可用时长
    var surplusTotal: String = ""
    /// 套餐总时长
    var totalTime: Int = 0
    /// 用户账号
    var userName: String = ""
    /// 用户类型：0，通用客户端，3 设计云，4 建协，5 建造 6 游戏云
    var userType: Int = 0
    /// 用户类型：0，通用客户端，3 设计云，4 建协，5 建造 6 游戏云
    var _userType: UserType {
        return UserType(rawValue: userType) ?? .client
    }
    /// 游戏订单详细信息集合
    var orderInfoVos: [YBOrderInfoVosModel] = []
}
